<script type="text/javascript">
	
	function batal(){
		document.location.href = '<?=base_url().'index.php/merk_kendaraan'?>';
	}
	
</script>

	<?php 
		if(validation_errors())
		{
	?>
			<ul class="message error grid_12">
				<li><?=validation_errors()?></li>
				<li class="close-bt"></li>
			</ul>	
	<?php
		} 
	?>

<section class="grid_12">
	<div class="block-border">
		<?php
			$attributes = array('name' => 'form1', 'id' => 'form1', 'class'=>'block-content form');
			echo form_open('merk_kendaraan/process_update', $attributes);
		?>
			<h1>Data Referensi > Edit Data Jenis Kendaraan</h1>
			
					<fieldset>			
						<div class="columns">
							<p class="colx3-left">
									<input type="hidden" name="kode_hidden" value="<?=$kode_hidden?>">
									<label for="complex-en-url">Kode Merk Kendaraan (*) :</label>
									<span class="relative">
										<? 
											if (form_error('kode') != null)
											{
												echo '<input type="text" name="kode" id="kode"   value="'.set_value('kode').'" class="setengah-width">';
											}else
											{
												echo '<input type="text" name="kode" id="kode"  value="'.$kode.'" class="setengah-width">';
											}
										?>
									</span>
								</p>
							 
						</div>
						<div class="columns">
							<p class="colx3-left">
								<label for="complex-en-url">Nama Merk Kendaraan :</label>
								<span class="relative">
									<? 
										if (form_error('nama') != null)
										{
											echo '<input type="text" name="nama" id="nama" value="'.set_value('nama').'" class="setengah-width">';
										}else
										{
											echo '<input type="text" name="nama" id="nama" value="'.$nama.'" class="setengah-width">';
										}
									?>
								</span>
							</p>  
						</div> 						<div class="columns">							<p class="colx3-left"> 									<label for="complex-en-url">Nama Model Kendaraan (*) :</label>									<span class="relative">										<? 											if (form_error('model') != null)											{												echo '<input type="text" name="model" id="model"   value="'.set_value('model').'" class="setengah-width">';											}else											{												echo '<input type="text" name="model" id="model"  value="'.$model.'" class="setengah-width">';											}										?>									</span>								</p>							 						</div>												<div class="columns">							<p class="colx3-left"> 									<label for="complex-en-url">Nama Jenis Kendaraan (*) :</label>									<span class="relative">										<? 											if (form_error('jenis') != null)											{												echo '<input type="text" name="jenis" id="jenis"   value="'.set_value('jenis').'" class="setengah-width">';											}else											{												echo '<input type="text" name="jenis" id="jenis"  value="'.$jenis.'" class="setengah-width">';											}										?>									</span>								</p>							 						</div>
			</fieldset>
			 
				
			<div id="tab-settings" class="tabs-content">
					<button type="submit"><img src="<?=base_url()?>asset/admin/images/icons/fugue/tick-circle.png" width="16" height="16"> Simpan</button>
					<button type="button" onclick="javascript:batal();" class="red">Batal</button> 					
			</div>
			
		</form>
	</div>
</section>